package 内存模型;

import java.util.Arrays;
import java.util.List;
import java.util.OptionalDouble;

public class MemoryExchange {


    //定义在这里是合法的，因为成员变量在类加载时会被赋予空值
    //static String b;


    public static void main(String[] args) {


        String b ;


        new Thread(new Runnable() {
            @Override
            public void run() {

                System.out.println("");

            }
        }).start();


        String str1 = null;
        String[] strArrays = {"a", "b", "c"};
        Arrays.stream(strArrays).forEach(i -> {
            System.out.println(i + str1);
        });


    }
}
